﻿using QuocHoi_TV_Frontend.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace QuocHoi_TV_Frontend.Controllers
{
    public class NewsController : MenuController
    {
        //
        // GET: /News/

        public ActionResult NewsDetailHome(long newsID = 0)
        {   
            News detail = DataModels.SelectNewsOne(newsID);
           
            if (detail != null)
            {
                ViewBag.objnews = detail;
                ViewBag.lstcatenews = DataModels.GetNewsByCate(long.Parse(detail.CateId.ToString()), 1);
            }
            return View();
        }

    }
}
